package cn.syx.util;

import java.util.Calendar;
import java.util.Date;

public class DateTimeUtil {

    public static void main(String[] args) {
        System.out.println(getIntWeekOfDate());
    }

    public static int getIntWeekOfDate(){
        Calendar cal = Calendar.getInstance();
        cal.setTime(new Date());
        return cal.get(Calendar.DAY_OF_WEEK);
    }

}
